package com.data.config;

import com.data.common.aspect.annotation.Dict;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 * JeBootProperties
 * </p>
 *
 * @author li
 * @version 1.0
 * @date 2022-03-08 11:43
 * @since 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "boot.message")
public class JeBootMsgProperties {

    Ai ai = new Ai();

    @Data
    public static class Ai{

        /**
         *  AI clientId
         */
        private String userId  = "14474";

        /**
         *  每条消息等待时间
         */
        private long timeout = 10000;

        /**
         *  每分钟消息量
         */
        private Integer queueCapacity = 6;

        /**
         *  消息重试次数
         */
        private Integer retry = 3;

        /**推送方式：1短信 2邮件 3微信 5AI*/
        private String esType = "5";

    }

}
